Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mining tx analysis and claim logic #15

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

whoabuddy
Copy link
Collaborator

This PR builds on the downloaded TX list to filter out block heights that haven't been claimed yet.

Includes:

  • derived atom that splits transactions by city (wip)
  • helper functions to extract block heights from:
    • mining calls, to compute blocks mined
    • mining claim calls, to compute blocks claimed for
  • data laid out on the mining claim tab (wip)

Since the contracts follow different formats there are still some evolving patterns here, and once working we can apply the same logic to stacking transactions / claims.

Note: Looking at this while I type it up, probably worth renaming derived atoms and logic around blocksMined and blocksClaimed to start, then use those two to derive blocksToClaim.

whoabuddy added 5 commits May 19, 2024 07:46
This turned out to be more complicated than expected, but the right pattern for reducing these datasets will come to light.
We now have a raw list of block heights, which we can compare against claims already made.
Copy link

cloudflare-workers-and-pages bot commented May 20, 2024

Deploying citycoins2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: ca17a9d
Status: ✅  Deploy successful!
Preview URL: https://2a3dc67a.citycoins2.pages.dev
Branch Preview URL: https://feat-add-tx-identification.citycoins2.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant